//
//  AECommunityDetailLayout.h
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/20.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TYZBaseModel.h"
#import <YYTextLayout.h>
#import "XJTextLinePositionModifier.h"
#import "AECommunityDetailModel.h"

NS_ASSUME_NONNULL_BEGIN

// 宽高
#define kCommunityDynamicCellTopMargin (10) // cell 顶部留白高度
#define kCommunityDynamicCellPadding (15)       // cell 内边距
#define kCommunityDynamicCellPaddingText (10)   // cell 文本与其他元素间留白

#define kCircleMarginLefOrRight (15)

#define kCircleCellPadding (4)

#define kCommunityDynamicCellPaddingPic (4)     // cell 多张图片中间留白

#define kCommunityDynamicCellHeaderPhotoWH (40) // 头像大小

#define kCommunityDynamicCellContentWidth (kScreenWidth - 2 * kCommunityDynamicCellPadding) // cell 内容宽度(推荐)

#define kCommunityAttentionDynamicCellLeftPadding (kCommunityDynamicCellPadding + kCommunityDynamicCellHeaderPhotoWH + kCommunityDynamicCellPaddingText) // 关注动态的left
#define kCommunityAttentionDynamicCellContentWidth (kScreenWidth - kCircleMarginLefOrRight - kCommunityAttentionDynamicCellLeftPadding) // cell 内容宽度(关注)


//#define kCommunityDynamicCellNickNameWidth (kScreenWidth - kCommunityDynamicCellPadding * 2 - kCommunityDynamicCellHeaderPhotoWH - kCommunityDynamicCellPaddingText) // 昵称的宽度

#define kCommunityDynamicCellProfileHeight (kCommunityDynamicCellHeaderPhotoWH + kCommunityDynamicCellPaddingText*2) // cell 个人信息view


#define kCommunityDynamicCellToolbarHeight (40)     // cell 下方工具栏高度
#define kCommunityDynamicCellToolbarBottomMargin (8) // cell 下方灰色留白




// 字体大小
#define kCommunityDynamicCellNickNameFontSize (16) // 昵称字体大小

#define kCommunityDynamicCellForwardNickNameFontSize (13) // 转发昵称字体大小

#define kCommunityDynamicCellTimeAdressFontSize (11) // 时间 地址

#define kCircleCellPublishTimeFontSize (12) // 发布时间

#define kCommunityDynamicCellChannelFontSize (10) // 频道

#define kCommunityDynamicCellTitleFontSize (18) // 动态标题

#define kCommunityDynamicCellContentFontSize (16) // 动态内容
#define kCommunityDynamicCellCommentFontSize (14) // 评论内容
#define kCommunityDynamicCellForwardContentFontSize (10) // 赚翻动态内容


// 颜色
#define kCommunityDynamicCellNickNameColor [UIColor colorWithHexString:@"#206FA5"] // 昵称字的颜色
#define kCommunityDynamicCellForwardNickNameColor [UIColor colorWithHexString:@"#666666"] // 转发昵称字的颜色

# define kCirclePublishTimeColor [UIColor colorWithHexString:@"#5D5D5D"] // 发布时间字的颜色

#define kCommunityDynamicCellTimeAdressColor [UIColor colorWithHexString:@"#999999"] // 时间 地址 字的颜色

#define kCommunityDynamicCellChannelColor [UIColor colorWithHexString:@"#4498FF"] // 时间 地址 字的颜色

#define kCommunityDynamicCellContentColor [UIColor colorWithHexString:@"#424242"] // 动态的内容颜色
#define kCommunityDynamicCellForwardContentColor [UIColor colorWithHexString:@"#999999"] // 转发动态的内容颜色

#define kCommunityDynamicCellContentTipColor [UIColor colorWithHexString:@"#4498FF"] // “全文”

#define kCommunityDynamicCellTextHighlightColor [UIColor colorWithHexString:@"#527ead"] // Link 文本色

#define kCommunityDynamicCellTextHighlightBackgroundColor [UIColor colorWithHexString:@"#bfdffe"] // Link 点击背景色

#define kCommunityDynamicCellBackgroundColor [UIColor colorWithHexString:@"#f1f1f1"] // cell背景色

#define kCommunityDynamicCellHighlightColor [UIColor colorWithHexString:@"#f0f0f0"]     // Cell高亮时灰色

#define kCDLinkHrefName @"href" //NSString
#define kCDLinkURLName @"url" //WBURL
#define kCDLinkTagName @"tag" //WBTag
#define kCDLinkTopicName @"topic" //WBTopic
#define kCDLinkAtName @"at" //NSString

@interface AECommunityDetailLayout : TYZBaseModel

@property (nonatomic, strong, readonly) AECommunityDetailModel *model;

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)new NS_UNAVAILABLE;

- (instancetype)initWithDetailModel:(AECommunityDetailModel *)model;

@end

NS_ASSUME_NONNULL_END
